class User {
  constructor(options) {
    const { uid, nickname, password, phone, email, avatar, status } = options;
    this.uid = uid ? uid : null;
    this.nickname = nickname ? nickname : null;
    this.password = password ? password : null;
    this.phone = phone ? phone : null;
    this.email = email ? email : null;
    this.avatar = avatar ? avatar : null;
    this.status = status ? status : 1;
  }
}

module.exports = User;
